# put your whitelist file in RAILS_ROOT/config/whitelists/development.txt, substituting 'development' 
# with whatever your environment is
whitelist_file = File.join(RAILS_ROOT, "config", "whitelists", "#{ENV['RAILS_ENV']}.txt")
if File.exist?(whitelist_file)
  require File.join(File.dirname(__FILE__), *%w[lib allowed_email])
  require File.join(File.dirname(__FILE__), *%w[lib email_whitelist])
  EmailWhitelist::AllowedEmail.use_file(whitelist_file)
end